# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=perl-test-subcalls
pkgver=1.10
pkgrel=6
pkgdesc="Track the number of times subs are called"
arch=('any')
license=('PerlArtistic')
url="https://metacpan.org/release/Test-SubCalls"
depends=('perl-hook-lexwrap')
options=('!emptydirs')
source=("https://cpan.metacpan.org/authors/id/E/ET/ETHER/Test-SubCalls-$pkgver.tar.gz")
sha512sums=('67c64eeb9dbf7ed2f5fd4461316ee44cba4f503c6b822a5fb8c3f100c3d4de7ac09058afc0cdf355549829d8e412d1919bc64a1f3030f16f38775b029936a4f9')

build() {
  cd Test-SubCalls-$pkgver
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd Test-SubCalls-$pkgver
  make test
}

package() {
  cd Test-SubCalls-$pkgver
  make DESTDIR="$pkgdir" install
}
